/* 添加到我的收藏 */
function addCollects($this) {
	var chks = document.querySelectorAll('#songlist input[type="checkbox"]');
    var listSelected = new Array();
    for (var i = 0; i < chks.length; i++) {
        var chk = chks[i];
        if(chk.checked){
        	listSelected.push({sid:chk.closest("li").getAttribute("data-songid")});
        }
    }
	$.ajax({
		url : "music/addtosonglist/addtocollects",
		data : JSON.stringify(listSelected),
		dataType : "json",
		type : "post",
		contentType : 'application/json;charset=utf-8', 
		success : function(data) {
			if(data.Tip==true){
                $(".icheckbox_square-pink").removeClass("checked");
				$this.tip("收藏成功啦♪(^∇^*)")
			}else{
				$this.tip("收藏失败╮(╯▽╰)╭")
			}
		},
		error : function(data) {
			$this.tip("收藏失败╮(╯▽╰)╭")
		}
	});
}